CODE_PATH=/Users/mac/gitee/consumer/consumer-web
LOG_PATH=/Users/mac/gitee/log

cd $CODE_PATH

sudo kill -9 `ps -ef | grep consumer-web-0.0.1-SNAPSHOT.jar  | tr -s ' ' | awk -F' ' '{print $2}'`

mvn clean package -Dmaven.test.skip=true

cd $CODE_PATH/target


nohup java  -javaagent:/Users/mac/gitee/skywalking/apache-skywalking-apm-incubating/agent/skywalking-agent.jar -Dskywalking.collector.backend_service=127.0.0.1:11800 -Dskywalking.agent.application_code=consumer-web  -jar consumer-web-0.0.1-SNAPSHOT.jar  > $LOG_PATH/consumerweb.log &

echo "start consumer-web success"

